package com.asia5b.a5mall.home.binding

import androidx.databinding.ObservableField
import androidx.fragment.app.Fragment
import com.asia5b.a5bmall.resource.ActCons
import com.asia5b.a5mall.middleware.utils.push
import com.asia5b.a5mall.middleware.utils.startGoodsDetailActivity

/**
 * Created by zhangyuncai on 2019/12/21.
 * @Note   首页UIVM
 */
class HomeFragmentBindHelper {
    companion object {


        fun goods(fragment: Fragment, goodsId: Int) {
           startGoodsDetailActivity(fragment.requireContext(),goodsId)
        }


    }

    /**
     * @Name  scrollY
     * @Type  ObservableField<Int>
     * @Note  滑动距离
     */
    val scrollY = ObservableField(0)

    /**
     * @Name  image
     * @Type  String
     * @Note  测试图片
     */
    var image = "http://onghqryqs.bkt.clouddn.com/ChMkJlauzbOIb6JqABF4o12gc_AAAH9HgF1sh0AEXi7441.jpeg"

    /**
     * @Name  isHide
     * @Type  ObservableField<Boolean>
     * @Note  是否隐藏
     */
    val isHide = ObservableField(true)


}